﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Administrar CVs.aspx.vb" Inherits="Administrar_CVs" title="Página sin título" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 678px">
        <tr>
            <td align="center" colspan="4">
                <asp:Label ID="Label27" runat="server" Font-Size="Large" ForeColor="#9966FF" 
                    Text="Administración de CV's"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 227px" align="right">
                &nbsp;</td>
            <td>
                    &nbsp;</td>
            <td align="right">
                &nbsp;</td>
            <td>
                    &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 227px" align="left">
                <asp:Label ID="Label28" runat="server" Text="Datos de Persona:" Width="128px" 
                    ForeColor="#000099"></asp:Label>
            </td>
            <td>
                    &nbsp;</td>
            <td align="right">
                &nbsp;</td>
            <td>
                    &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 227px" align="right">
                <asp:Label ID="Label3" runat="server" Text="Tipo Documento:"></asp:Label>
            </td>
            <td>
                    <asp:DropDownList ID="ddlTipoDocumento" runat="server" 
                        Width="120px">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="ddlTipoDocumento" Display="Dynamic" ErrorMessage="*" 
                        ValidationGroup="persona"></asp:RequiredFieldValidator>
                    </td>
            <td align="right">
                <asp:Label ID="Label4" runat="server" Text="Nro Documento:"></asp:Label>
            </td>
            <td>
                    <asp:TextBox ID="txtNroDocumento" runat="server" MaxLength="8" ReadOnly="True"></asp:TextBox>
                    
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txtNroDocumento" Display="Dynamic" ErrorMessage="*" 
                        ValidationGroup="persona"></asp:RequiredFieldValidator>
                    
            </td>
        </tr>
        <tr>
            <td style="width: 227px" align="right">
                <asp:Label ID="Label1" runat="server" Text="Apellido:"></asp:Label>
            </td>
            <td>
                                <asp:TextBox ID="txtApellido" runat="server" 
                    Width="177px"></asp:TextBox>
                    
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="txtApellido" Display="Dynamic" ErrorMessage="*" 
                                    ValidationGroup="persona"></asp:RequiredFieldValidator>
                    
            </td>
            <td align="right">
                <asp:Label ID="Label5" runat="server" Text="Nombre:"></asp:Label>
            </td>
            <td>
                                <asp:TextBox ID="txtNombre" runat="server"></asp:TextBox>
                    
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                    ControlToValidate="txtNombre" Display="Dynamic" ErrorMessage="*" 
                                    ValidationGroup="persona"></asp:RequiredFieldValidator>
                    
            </td>
        </tr>
        <tr>
            <td style="width: 227px" align="right">
                <asp:Label ID="Label2" runat="server" Text="Fecha Nacimiento:"></asp:Label>
            </td>
            <td>
                    <asp:TextBox ID="txtFechaNacimiento" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtFechaNacimiento" Display="Dynamic" ErrorMessage="*" 
                        ValidationGroup="persona"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToValidate="txtFechaNacimiento" Display="Dynamic" ErrorMessage="*" 
                        Operator="DataTypeCheck" Type="Date" ValidationGroup="persona"></asp:CompareValidator>
                    </td>
            <td align="right">
                <asp:Label ID="Label6" runat="server" Text="E-mail:"></asp:Label>
            </td>
            <td>
                                <asp:TextBox ID="txtemail" runat="server"></asp:TextBox>
                    
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                    ControlToValidate="txtemail" Display="Dynamic" ErrorMessage="*" 
                                    ValidationGroup="persona" 
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    
            </td>
        </tr>
        </table>
        <table style="width: 100">
        <tr>
            <td colspan="4">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 208px" align="right">
                    <asp:Label ID="Label15" runat="server" Text="Direcciones:"></asp:Label>
                </td>
            <td style="width: 340px">
                                <asp:GridView ID="gvDireccionesPersonas" runat="server" 
                                    EmptyDataText="No hay direcciones cargadas" AutoGenerateColumns="False" 
                                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                                    style="margin-right: 0px" Width="357px">
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="calle" HeaderText="Calle" />
                                        <asp:BoundField DataField="Barrio" HeaderText="Barrio" />
                                        <asp:BoundField DataField="tipo_direccion" HeaderText="Tipo Direccion" />
                                        <asp:BoundField DataField="localidad" HeaderText="Localidad" />
                                    </Columns>
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <EditRowStyle BackColor="#999999" />
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                </asp:GridView>
                            </td>
                            
            <td colspan="2" align="left">
                                <asp:Button ID="btnNuevaDireccion" runat="server" 
                                    Text="Administrar" ValidationGroup="persona" />
                            </td>
                            
        </tr>
        <tr>
            <td style="width: 208px">
                &nbsp;</td>
            <td style="width: 340px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
                  <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Button ID="btnNuevo" runat="server" Text="Nuevo" style="height: 26px" />
                <asp:Button ID="btnAceptar" runat="server" Enabled="False" Text="Aceptar" />
                <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" />
            </td>
        </tr>
        <tr>
            <td style="width: 208px">
                &nbsp;</td>
            <td style="width: 340px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
                  <td>
                      &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 208px" align="right">
                <asp:Label ID="Label26" runat="server" Text="Apellido:"></asp:Label>
            </td>
            <td style="width: 340px">
                <asp:TextBox ID="txtApellidoBusqueda" runat="server"></asp:TextBox>
                <asp:ImageButton ID="btnBuscarApellido" runat="server" CausesValidation="False" 
                    Height="18px" ImageUrl="~/Imagenes/lupa.gif" Width="16px" />
            </td>
            <td>
                &nbsp;</td>
                  <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:GridView ID="gvPersonas" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" DataKeyNames="id_tipo_documento,nro_documento,id_cv" 
                    ForeColor="#333333" GridLines="None" AllowPaging="True" PageSize="5" 
                    EmptyDataText="No hay personas y empleados cargados">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="apellido" HeaderText="Apellido" />
                        <asp:BoundField DataField="nombre" HeaderText="Nombre" />
                        <asp:BoundField DataField="Tipo_documento" HeaderText="Tipo Documento" />
                        <asp:BoundField DataField="nro_documento" HeaderText="Nro Documento" />
                        <asp:BoundField DataField="Fecha_nacimiento" HeaderText="Fecha Nacimiento" />
                        <asp:BoundField DataField="email" HeaderText="E-mail" />
                        <asp:CheckBoxField DataField="es_empleado" HeaderText="Empleado" 
                            ReadOnly="True" />
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagenes/trash.gif" 
                            ShowDeleteButton="True" />
                        <asp:CommandField ShowSelectButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
      
        </tr>
        <tr>
            <td style="width: 208px">
                &nbsp;</td>
            <td style="width: 340px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 208px">
                </td>
            <td style="width: 340px">
                &nbsp;</td>
              <td>
                  &nbsp;</td>
                  <td>
                &nbsp;</td>
        </tr>
        </table>
        <table style="width: 678px">
        <tr>
            <td align="right" style="width: 208px">
                <asp:Label ID="Label16" runat="server" Text="Experiencia Laboral" Width="128px" 
                    ForeColor="#000099"></asp:Label>
            </td>
            <td style="width: 987px" >
                &nbsp;</td>
              <td style="width: 80px">
                  &nbsp;</td>
                  <td>
                      &nbsp;</td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label17" runat="server" Text="Cargo:" Width="43px" Height="16px"></asp:Label>
            </td>
            <td style="width: 987px" >
                <asp:DropDownList ID="ddlCargosExperiencia" runat="server" AutoPostBack="True">
                </asp:DropDownList>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="ddlCargosExperiencia" Display="Dynamic" ErrorMessage="*" 
                    ValidationGroup="experiencia"></asp:RequiredFieldValidator>
                &nbsp;
                <asp:Label ID="lblOtroCargo" runat="server" Text="Otro Cargo:" Visible="False"></asp:Label>
                <asp:TextBox ID="txtOtroCargo" runat="server" Visible="False" Width="75px"></asp:TextBox>
            </td>
              <td align="right" >
                  <asp:Label ID="Label18" runat="server" Text="Empresa:" Width="55px"></asp:Label>
            </td>
                  <td>
                      <asp:TextBox ID="txtEmpresa" runat="server"></asp:TextBox>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                          ControlToValidate="txtEmpresa" ErrorMessage="*" ValidationGroup="experiencia"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" >
                <asp:Label ID="Label19" runat="server" Text="Fecha desde:"></asp:Label>
            </td>
            <td style="width: 987px" >
                <asp:TextBox ID="txtDesde" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="txtDesde" Display="Dynamic" ErrorMessage="*" 
                    ValidationGroup="experiencia"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToValidate="txtDesde" Display="Dynamic" ErrorMessage="*" 
                    Operator="DataTypeCheck" Type="Date" ValidationGroup="experiencia"></asp:CompareValidator>
            </td>
              <td align="right" >
                <asp:Label ID="Label29" runat="server" Text="Fecha hasta:"></asp:Label>
            </td>
                  <td>
                      <asp:TextBox ID="txtHasta" runat="server"></asp:TextBox>
                      <asp:CompareValidator ID="CompareValidator3" runat="server" 
                          ControlToValidate="txtHasta" Display="Dynamic" ErrorMessage="*" 
                          Operator="DataTypeCheck" Type="Date" ValidationGroup="experiencia"></asp:CompareValidator>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                          ControlToValidate="txtHasta" Display="Dynamic" ErrorMessage="*" 
                          ValidationGroup="experiencia"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 208px">
                &nbsp;</td>
            <td style="width: 987px">
                &nbsp;</td>
              <td align="right" style="width: 80px">
                  &nbsp;</td>
                  <td>
                      &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Button ID="btnAgregarExperiencia" runat="server" Text="Agregar" 
                    Enabled="False" ValidationGroup="experiencia" />
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 208px">
                &nbsp;</td>
            <td style="width: 987px">
                &nbsp;</td>
              <td align="right" style="width: 80px">
                  &nbsp;</td>
                  <td>
                      &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:GridView ID="gvExperiencia" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" 
                    DataKeyNames="id_cv,id_detalle" 
                    EmptyDataText="No hay experiencias laborales cargadas" PageSize="5">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="cargo" HeaderText="Cargo" />
                        <asp:BoundField DataField="empresa" HeaderText="Empresa" />
                        <asp:BoundField DataField="fecha_desde" HeaderText="Fecha Desde" />
                        <asp:BoundField DataField="fecha_hasta" HeaderText="Fecha Hasta" />
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagenes/trash.gif" 
                            ShowDeleteButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 208px">
                &nbsp;</td>
            <td style="width: 987px">
                &nbsp;</td>
              <td align="right" style="width: 80px">
                  &nbsp;</td>
                  <td>
                      &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width: 208px">
                <asp:Label ID="Label22" runat="server" Text="Educacion" Width="128px" 
                    ForeColor="#000099"></asp:Label>
            </td>
            <td style="width: 987px">
                &nbsp;</td>
              <td align="right" style="width: 80px">
                  &nbsp;</td>
                  <td>
                      &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width: 208px">
                <asp:Label ID="Label21" runat="server" Text="Estudio:" Width="128px"></asp:Label>
            </td>
            <td style="width: 987px">
                <asp:DropDownList ID="ddlEstudios" runat="server">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                    ControlToValidate="ddlEstudios" Display="Dynamic" ErrorMessage="*" 
                    ValidationGroup="educacion"></asp:RequiredFieldValidator>
            </td>
              <td align="right" style="width: 80px">
                  <asp:Label ID="Label23" runat="server" Text="Institucion:" Width="128px"></asp:Label>
            </td>
                  <td>
                      <asp:TextBox ID="txtInstitucion" runat="server"></asp:TextBox>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                          ControlToValidate="txtInstitucion" Display="Dynamic" ErrorMessage="*" 
                          ValidationGroup="educacion"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 208px">
                <asp:Label ID="Label24" runat="server" Text="Descripcion Otro:" Width="128px"></asp:Label>
            </td>
            <td style="width: 987px">
                <asp:TextBox ID="txtOtro" runat="server"></asp:TextBox>
            </td>
              <td align="right" style="width: 80px">
                <asp:Label ID="Label25" runat="server" Text="Fecha Fin:" Width="125px"></asp:Label>
            </td>
                  <td>
                      <asp:TextBox ID="txtFechaEstudio" runat="server"></asp:TextBox>
                      <asp:CompareValidator ID="CompareValidator4" runat="server" 
                          ControlToValidate="txtFechaEstudio" Display="Dynamic" ErrorMessage="*" 
                          Operator="DataTypeCheck" Type="Date" ValidationGroup="educacion"></asp:CompareValidator>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                          ControlToValidate="txtFechaEstudio" Display="Dynamic" ErrorMessage="*" 
                          ValidationGroup="educacion"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 208px">
                &nbsp;</td>
            <td style="width: 987px">
                &nbsp;</td>
              <td align="right" style="width: 80px">
                  &nbsp;</td>
                  <td>
                      &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Button ID="btnAgregarEducacion" runat="server" Text="Agregar" 
                    Enabled="False" ValidationGroup="educacion" />
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 208px">
                &nbsp;</td>
            <td style="width: 987px">
                &nbsp;</td>
              <td align="right" style="width: 80px">
                  &nbsp;</td>
                  <td>
                      &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:GridView ID="gvEducacion" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" DataKeyNames="id_cv,id_detalle" 
                    ForeColor="#333333" GridLines="None" AllowPaging="True" 
                    EmptyDataText="No hay datos de educacion cargados" PageSize="5">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="estudio" HeaderText="Estudio" />
                        <asp:BoundField DataField="institucion_estudio" HeaderText="Institucion" />
                        <asp:BoundField DataField="descripcion_estudio" HeaderText="Descripcion" />
                        <asp:BoundField DataField="Fecha_estudio" HeaderText="Fecha" />
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagenes/trash.gif" 
                            ShowDeleteButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 208px">
                &nbsp;</td>
            <td style="width: 987px">
                &nbsp;</td>
              <td align="right" style="width: 80px">
                  &nbsp;</td>
                  <td>
                      &nbsp;</td>
        </tr>
        </table>
    
    <p></p>
</asp:Content>

